Skip to content

Reviewer session: a live activity timeline and the PR overview - #345

Merged
nambok merged 2 commits into
mainfrom
reviewer-activity
Nov 9, 2026
Merged

nambok merged 2 commits into
mainfrom
reviewer-activity

Conversation

@nambok

@nambok nambok commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

The review session page now shows the reviewer's work the way Copilot code review does: a live, collapsible "Reviewing pull request" timeline with elapsed time, grouped tool activity ("Search 3 times", "View 2 files", "Store 2 comments"), the short headed notes the reviewer wrote, and the PR Overview it posted, with a File | Description table. It reads the fields added in CoderHelm/coderhelm-platform#529, which is merged (96909edf).

Changes

  • reviewer/session/sections.tsx:
    • SessionActivity replaces the plain steps list. Its header shows "Reviewing pull request" or "Reviewed pull request" with the elapsed time and folds the whole timeline.
    • Setup steps and activity groups merge in time order. Each group opens to show its queries, path:lines entries, lookups or comment places and titles, and failed calls are marked.
    • Notes show their heading and sentences. The newest entry pulses while the review runs.
    • If the review hit its step cap, a line says how many steps weren't recorded.
  • SessionOverview: the summary sentence, the Changes list, the changed-file count, and a Reviewed Changes table (File, Description). The table uses the shared data table, so it becomes cards on a phone. It is folded behind "Show a summary per file" above 15 files, with "And N more files" when the list was capped.
  • reviewer/session/session.ts: pure helpers timeline, activityHeading, offsetLabel, droppedNote.
  • lib/api.ts, api-contract.ts, openapi-fields.ts: the ActivityGroup, ActivityItem, ReviewOverview and OverviewFile types. Their contract is checked against the platform's OpenAPI document, which was regenerated at 96909edf.
  • Landing page features list: one line saying a review shows every step it took and gives a file by file overview.
  • Docs, The PR reviewer: a new "What a review looks like" section (the overview), and the session section now covers the activity timeline and what is and isn't recorded.

Verification

  • Dashboard: npm run lint (UI lint at baseline, no hosted links), npm run typecheck, npm run check:openapi, npm run build.
  • Dashboard e2e, full suite against the static export: 1452 passed. One new test failed under parallel load because it depended on poll timing. It now switches the mocked session to done explicitly. reviewer-session.spec.ts then passed 42 of 42 with --repeat-each=3 --workers=3.
  • New tests:
    • the timeline merge order, the heading and dropped-step wording
    • the live timeline: groups, open and close, running and done states, failed items, the comments group, elapsed time, the dropped note
    • the overview: summary, changes, table rows, none when absent
    • a large PR's table folded and capped, and no sideways scroll at phone width
  • Site: npm run lint and npm run build. Docs: build, typecheck, check:links, check:output, unit tests and e2e (166 passed).

The review session page now shows what the reviewer did, Copilot style: one
collapsible "Reviewing pull request" timeline with the elapsed time, the
setup steps, then each group of what it did ("Search 3 times", "View 2
files", "Store 2 comments") with its queries, file ranges or comment places
inside, and the short notes it wrote on what it was checking. The newest
entry pulses while the review runs. Below it, the PR Overview the review
posted: one sentence, the Changes list and a File and Description table,
folded above 15 files as on GitHub.

The session types gain activity, activity_dropped and overview, checked
against the platform's OpenAPI document (regenerated at the platform
commit that added them). The landing page's features list and the
reviewer docs say what the review shows.
@nambok
nambok merged commit bacd9bb into main Nov 9, 2026
10 checks passed
@nambok
nambok deleted the reviewer-activity branch November 9, 2026 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant